/*
 * @Author: NaturalHulk 2066634567@qq.com
 * @Date: 2024-10-08 09:31:44
 * @LastEditors: NaturalHulk 2066634567@qq.com
 * @LastEditTime: 2025-03-04 15:09:27
 * @FilePath: /xhs-mom-new/src/api/warehouse/outbound/shipsale.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 销售发货接口

import request from '@/utils/request'

//销售发货 列表
export function GetListAPI(params) {
  return request({
    url: '/storage/pickingSale/list',
    method: 'GET',
    params
  })
}

// 销售发货 新增
export function AddDataAPI(data) {
  return request({
    url: '/storage/pickingSale/addSale',
    method: 'POST',
    data
  })
}

// 销售发货 查看
export function GetDailtAPI(data) {
  return request({
    url: '/storage/pickingSale/view/' + data,
    method: 'GET'
  })
}

// 销售发货 批量审核
export function SubRevAPI(data) {
  return request({
    url: '/storage/pickingSale/saleReview',
    method: 'PUT',
    data
  })
}

// 销售发货 关结
export function CloseAPI(data) {
  return request({
    url: '/storage/pickingSale/closeSale',
    method: 'POST',
    data
  })
}

// 销售发货 删除
export function DelDataAPI(data) {
  return request({
    url: '/storage/pickingSale/deleteSale/' + data,
    method: 'DELETE'
  })
}

// 销售发货 修改
export function EditDataAPI(data) {
  return request({
    url: '/storage/pickingSale/updateSale',
    method: 'POST',
    data
  })
}

// 销售发货 提交
export function SubmitAPI(data) {
  return request({
    url: '/storage/pickingSale/submitSale',
    method: 'POST',
    data
  })
}

// 销售发货 审核
export function PurchaseOrderReviewAPI(data) {
  return request({
    url: '/storage/pickingSale/saleReview',
    method: 'PUT',
    data
  })
}

// 销售订单列表
export function GetOrderDataAPI(params) {
  return request({
    url: '/order/sales-order/getSaleOrderList',
    method: 'GET',
    params
  })
}
export function pickingSaleDetailPI(params) {
  return request({
    url: '/storage/pickingSaleDetail/list',
    method: 'GET',
    params
  })
}

/**
 * 金蝶云拉取销售订单
 * @param {*} data
 * @returns
 */
export function getJinDieSaleAPI(data) {
  return request({
    url: '/storage/pickingSale/pull',
    method: 'PUT',
    data
  })
}

// 金蝶云拉取日期回显
export function getPullViewAPI(params) {
  return request({
    url: '/storage/pickingSale/getPullView',
    method: 'GET',
    params
  })
}

// 报检
export function inspectionSubmissionAPI(data) {
  return request({
    url: '/storage/pickingSale/inspectionSubmission',
    method: 'POST',
    data
  })
}
